package cn.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.ssm.dao.GradeMapper;
import cn.ssm.pojo.Grade;
import cn.ssm.service.GradeService;

@Service("gradeServiceImpl")
public class GradeServiceImpl implements GradeService {
	
	@Autowired
	@Qualifier("gradeMapper")
	private GradeMapper grademapper;

	@Override
	public int addGrade(Grade grade) {
		return grademapper.insertGrade(grade);
	}

	@Override
	public int delGradeById(Integer GradeId) {
		return grademapper.delGradeById(GradeId);
	}

	@Override
	public int updateGrade(Grade grade) {
		return grademapper.updateGrade(grade);
	}

	@Override
	public List<Grade> findGradeAll() {
		return grademapper.selectGradeAll();
	}
	
}
